#pragma once

struct Comment
{
    enum Type
    {
        eNotAComment=0,
        eStyleC,
        eStyleCPP
    };

private:
    char m_cLookAhead;

public:
    Comment(void)
    {
        m_cLookAhead = '\0';
    }
        
    Type detect(char inDelimiter)
    {
        Comment::Type eReturnType;

        eReturnType=Comment::eNotAComment;
        if('/'==m_cLookAhead)
        {
            if('*'==inDelimiter)
                eReturnType= Comment::eStyleC;
            else if('/'==inDelimiter)
                eReturnType = Comment::eStyleCPP;
        }

        m_cLookAhead = inDelimiter;
        return eReturnType;
    }

    ~Comment(void)
    {
    }
};
